﻿/* 2014/8/2 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Cosmos.Windows.Forms.FileList.DynamicColumn
{
    public interface IDynamicAttributeExtractor
    {
        /// <summary>
        /// Adds column to ListView, prepares for displaying dynamic attribute.
        /// </summary>
        /// <param name="fileListView"></param>
        void AddColumns(ListView listView);

        /// <summary>
        /// Remove all columns added for displaying dynamic attribute.
        /// </summary>
        /// <param name="fileListView"></param>
        void ClearColumns(ListView listView);

        /// <summary>
        /// Adds sub-items which are dynamic attributes to a ListViewItem.
        /// </summary>
        /// <param name="fileItem"></param>
        /// <param name="fileName"></param>
        void AddSubItems(ListViewItem listViewItem, string attribute);
    }
}
